﻿#region Using directives

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using MCMLXVII.BackEnd.Services.SystemConfiguration.Messages;
using MCMLXVII.BackEnd.Services.Common.Messages;
using MCMLXVII.BackEnd.Services.OrganizationChart.Interfaces;
using MCMLXVII.BackEnd.Services.OrganizationChart.Messages;

#endregion

namespace MCMLXVII.Tools.OrganizationChart
{
    partial class frmAuditDetail : Form
    {
        private int _NodeID;
        private msgOrganizationNodeAuditInfo[] inf;
        public frmAuditDetail(int NodeID)
        {
            _NodeID = NodeID;
            inf = BusinessActions.GetOrganizationTreeNodeAudit(_NodeID);
            InitializeComponent();
            foreach (msgOrganizationNodeAuditInfo item in inf)
            {

                dataGridView1.Rows.Add(item.OperationDate, item.Name, item.FatherID, item.OwnerID, item.BlockInheritance, item.OperationClass, item.OperationMemberID, item.OperationMemberName);
            }
        }
    }
}